Is it possible to use a String as a seed for an instance Random? [duplicate]
Posted
by
danpetruk
on Stack Overflow
See other posts from Stack Overflow
or by danpetruk
Published on 2014-06-01T15:56:50Z
Indexed on
2014/06/01
21:28 UTC
Read the original article
Hit count: 117
This question already has an answer here:
- Converting String to long in Java 5 answers
I have a String value and I would like to init a random class using the string as a seed?
Is it possible to do this, and if so how?
UPDATE 1: The string consists not only of ASCII. I can have any utf-8 symbols.
UPDATE 2: Why did you close it? The questions really aren't about the same. Firstly because I've utf8 string and secondary because different strings can produce same seeds
© Stack Overflow or respective owner